package com.cz.run.beans.mysql;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author CAIYJ
 * @since 2018-06-10
 */
public class Pool extends Model<Pool> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 当日发币数
     */
    private Double currency;
    private Date time;
    /**
     * 1：冻结积分
     */
    private Integer type;
    /**
     * 解冻时间
     */
    @TableField("time_frozen")
    private Date timeFrozen;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Double getCurrency() {
        return currency;
    }

    public void setCurrency(Double currency) {
        this.currency = currency;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getTimeFrozen() {
        return timeFrozen;
    }

    public void setTimeFrozen(Date timeFrozen) {
        this.timeFrozen = timeFrozen;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Pool{" +
        ", id=" + id +
        ", currency=" + currency +
        ", time=" + time +
        ", type=" + type +
        ", timeFrozen=" + timeFrozen +
        "}";
    }
}
